import { request } from "../utils/request";
/**
 * 销售中心
 */
export function getSalesCenterDetail(data) {
  return new Promise(res => {
    res(request('/custBaseController/getSalesCenterDetail','POST',data))
  })
}
/**
 * 添加到客户地址
 */
export function saveCustAddress(data) {
  return new Promise(res => {
    res(request('/custBaseController/saveCustAddress','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}

/**
 * 保存头像至文件服务器20240624
 */
export function savaAvatarUrl(data) {
  return new Promise(res => {
    res(request('/custBaseController/savaAvatarUrl','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 更新头像昵称
 */
export function updateNickNameAvatar(data) {
  return new Promise(res => {
    res(request('/custBaseController/updateNickNameAvatar','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 根据Id修改客户地址
 */
export function updateCustAddressById(data) {
  return new Promise(res => {
    res(request('/custBaseController/updateCustAddressById','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 地址列表
 */
export function getCustAddressList(data) {
  return new Promise(res => {
    res(request('/custBaseController/getCustAddressList','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 删除列表
 */
export function deleteShopCartById(data) {
  return new Promise(res => {
    res(request('/custBaseController/deleteShopCartById','POST',data))
  })
}
/**
 * 根据userLoginState获取当前客户
 */
export function getCustBaseByUserLoginState(data) {
  return new Promise(res => {
    res(request('/custBaseController/getCustBaseByUserLoginState','POST',data))
  })
}
/**
 * 注册
 */
export function registration(data) {
  return new Promise(res => {
    res(request('/custBaseController/registration','POST',data))
  })
}
/**
 * 获取直接推荐人信息
 */
export function getDirectReferencesDetail(data) {
  return new Promise(res => {
    res(request('/custBaseController/getDirectReferencesDetail','POST',data))
  })
}
/**
 * 实名认证
 */
export function realNameAuth(data) {
  return new Promise(res => {
    res(request('/custBaseController/realNameAuth','POST',data))
  })
}
/**
 * 查配送人的头像 昵称
 */
export function getCustBaseById(data) {
  return new Promise(res => {
    res(request('/custBaseController/getCustBaseById','POST',data))
  })
}




